import { createRouter, createWebHashHistory } from 'vue-router'
import QueryOrder from '../pages/query_order'
import QueryTicket from '../pages/query_ticket'
import Home from '../pages/home'
import Login from '../pages/login'
import Register from '../pages/register'

const routes = [
    {
        path: '/',
        name: 'home',
        components: {
            desplace: Home
        }
    },
    {
        path: '/order',
        name: 'order',
        components: {
            // default: QueryOrder,
            desplace: QueryOrder
        }
    },
    {
        path: '/ticket',
        name: 'ticket',
        components: {
            // default: QueryTicket,
            desplace: QueryTicket
        }
    },
    {
        path: '/login',
        name: 'login',
        components: {
            desplace: Login,
        },
    },
    {
        path: '/register',
        name: 'register',
        components: {
            desplace: Register,
        },
    },
]


export default createRouter({
    history: createWebHashHistory(),
    routes,
})